package com.das.cloudmetro.ssoserver.feign;

import org.springframework.cloud.openfeign.*;
import com.liy.framework.common.extvo.*;
import org.springframework.web.bind.annotation.*;

@FeignClient(name = "sso", fallbackFactory = AuthorizationFeignClientFallbackFactory.class)
public interface AuthorizationFeignClient
{
    @RequestMapping(method = { RequestMethod.POST }, value = { "/auth/authorization" })
    ResultVO authorization(@RequestParam("token") final String p0);
    
    @RequestMapping(value = { "/auth/authorization/hasPermission" }, method = { RequestMethod.POST })
    ResultVO hasPermission(@RequestParam("token") final String p0, @RequestParam("code") final String p1);
    
    @RequestMapping(value = { "/auth/authorization/userPubKey" }, method = { RequestMethod.POST })
    ResultVO getUserPublicKey(@RequestParam("clientId") final String p0, @RequestParam("secret") final String p1);
    
    @RequestMapping(value = { "/auth/resources/sync" }, method = { RequestMethod.POST })
    ResultVO permissionSync(@RequestBody final Object p0);
}
